package dk.itu.KrakMap;

class PixelMapPoint {

    private int x;
    private int y;

    PixelMapPoint(int x, int y) {
        this.x = x;
        this.y = y;
    }

    /**
     * @return The X coordinate of the PixelMapPoint.
     */
    public int getX() {
        return x;
    }

    /**
     * @return The Y coordinate of the PixelMapPoint.
     */
    public int getY() {
        return y;
    }

    /**
     * Move the PixelMapPoint.
     *
     * @param x The value to move the point towards horizontally.
     * @param y The value to move the point towards vertically.
     */
    public void move(int x, int y) {
        this.x += x;
        this.y += y;
    }

    @Override
    public String toString() {
        return "PixelMapPoint: (" + getX() + ";" + getY() + ")";
    }
}
